    <?php if ($products) { ?>    
        <ul class="listProd">
            <?php $i = 0; ?>
            <?php foreach ($products as $product) { ?>
                <li>
					<a href="#" class="product">
						<?php if($product['discount']){ ?>
						<div class="sale-off"><span>-<?php echo $product['rate_discount'];?></span><span>%</span></div>
						<?php } ?>
						<?php $href = str_replace('&', '&amp;', $product['href']); ?> 
						<a class="prod-img" href="<?php echo $href; ?>"><img src="<?php echo $product['thumb']; ?>" alt="<?php echo $product['name']; ?>">
						<?php if($product['options']) { ?>
							<div class="product_sizes_popup">                                                                                                                                                                                                            
								<?php $op = 0; ?>
								<?php foreach($product['options'] as $options){ ?>
									<?php                                            
									$option_data = '';                                            
									foreach($options['option_value'] as $option_item){
										$option_data .=  $option_item['name'] . ', ';
									}
									$option_data = trim($option_data, ', ');
									?>
										
									<p class="header <?php echo ($op > 0 ? ' p5t' : ''); ?>"><?php echo (strcasecmp($options['name'], 'Størrelse') == 0) ? 'Størrelser' : $options['name'] ?></p>
									<p class="data"><?php echo $option_data ?></p>
									<?php $op++; ?>
								<?php } ?>                                                                                                                                              
							</div>
						<?php } ?>
						</a>
						<div class="prod-name"><p><?php echo $product['name']; ?> </p></div>
						<div class="prod-price">
						<?php if($product['discount']){ ?>
                           <span class="price-old"> <?php echo $product['price']; ?></span><span class="price-new"><?php echo $product['discount']; ?></span>                           
                        <?php }else{ ?>
                            <span class="price-normal"><?php echo $product['price']; ?></span>                            
                        <?php } ?>
						</div>
						<a href="<?php echo $href; ?>" class="btn btnBestil">Bestil Nu</a>
						<div class="see-inc"><a class="hastool" title="<?php echo $shipping_note; ?>">Se pris inkl. fragt/gebyr</a></div>
					</a>                               
				</li>
                
                
                <?php $i++; ?>
            <?php } ?>
        </ul>
    <?php } ?> 
